#ifndef QBOOLEDITOR_H
#define QBOOLEDITOR_H

#include "../../libs/sharedlib/qeditorlabel.h"

#include <QWidget>

namespace SHAREDLIB
{
    class QAbstractProperty;
}

class QBoolEditor : public SHAREDLIB::QEditorLabel
{
    Q_OBJECT
    Q_PROPERTY(bool m_value READ value WRITE setValue USER true)
public:
    explicit QBoolEditor(SHAREDLIB::QAbstractProperty *pro);
    bool            value();
    void            setValue(bool v);
signals:
    void    valueChanged();
protected slots:
    void    value_changed();
protected:
    void    mousePressEvent(QMouseEvent *);
protected:
    bool            m_value;
};

#endif // QBOOLEDITOR_H
